@model BarManager.UI.Web.Models.PoolViewModel

@{    ViewBag.Title = "Mesa de Pool";}

@using (Html.BeginForm("Save","Pool"))
{
    @Html.AntiForgeryToken()

    <fieldset class="form-horizontal">
        <legend>Mesa de Pool</legend>

        @Html.HiddenFor(model => model.Entity.Id)

        <div class="control-group">
            @Html.LabelFor(model => model.Entity.Descripcion, new { @class = "control-label" })
            <div class="controls">
                @Html.EditorFor(model => model.Entity.Descripcion)
                @Html.ValidationMessageFor(model => model.Entity.Descripcion, null, new { @class = "help-inline" })
            </div>
        </div>

        <div class="control-group">
            @Html.LabelFor(model => model.Entity.PrecioHora, new { @class = "control-label" })
            <div class="controls">
                @Html.EditorFor(model => model.Entity.PrecioHora)
                @Html.ValidationMessageFor(model => model.Entity.PrecioHora, null, new { @class = "help-inline" })
            </div>
        </div>

        <div class="control-group">
            @Html.LabelFor(model => model.Entity.Habilitada, new { @class = "control-label" })
            <div class="controls">
                @Html.EditorFor(model => model.Entity.Habilitada)
                @Html.ValidationMessageFor(model => model.Entity.Habilitada, null, new { @class = "help-inline" })
            </div>
        </div>

        <div class="control-group">
            <div class="controls">
                @Html.ValidationSummary(true)
            </div>
        </div>

        <div class="control-group">
            <div class="controls">
                <button type="submit" class="btn btn-primary">Guardar</button>
                @Html.ActionLink("Cancelar", "List", null, new { @class = "btn" })
            </div>
        </div>
    </fieldset>
}

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}

